package com.sqx.modules.health.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sqx.modules.health.entity.UserAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 用户联系地址	 Mapper 接口
 * </p>
 *
 * @author gxy
 * @since 2022-04-08
 */
@Mapper
public interface UserAddressMapper extends BaseMapper<UserAddress> {

    UserAddress getDefaultAddress(Long uid);

    Integer setDefaultAddress(Long id, Integer value);

    List<UserAddress> getAddressByUserId(Long uid);

    void delAddressById(Integer id);
}
